package com.huilunyingshi.videoprovider.dao;

import com.huilunyingshi.videoprovider.entity.TAnime;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Mapper
public interface TAnimeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TAnime record);

    int insertSelective(TAnime record);

    TAnime selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TAnime record);

    int updateByPrimaryKey(TAnime record);

    /**
     * 查询总条数
     * @return
     */
    int getAnimeListCount();

    ArrayList<TAnime> getAnimeList(@Param("keyword") String keyword, @Param("start")Integer start, @Param("pageSize")Integer pageSize);

    List<Map<String,Object>> getAnimeTypeList(@Param("lid") Long lid , @Param("start")Integer start, @Param("pageSize")Integer pageSize);

    //多类型查找
    List<Map<String,Object>>  getAnimeTypeLists(@Param("lid") Long lid,@Param("artId") Long artId,@Param("areaId")Long areaId,@Param("avId")Long avId,@Param("asId")Long asId,@Param("start")Integer start, @Param("pageSize")Integer pageSize);
}